/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Biz;

import Dao.PathologyDAO;
import Entity.Stock;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author cgzf
 */
public class StockBO {
    public List<Stock> getStock() throws SQLException
    {
        return new PathologyDAO().getAllStock();
    }
    
    public void addStock(String IName, int ICost, int INum, int DNum) throws SQLException
    {
        new PathologyDAO().AddStock(IName, ICost, INum, DNum);
    }
    public void editStock(int ItemCode, String IName, int ICost, int INum, int DNum) throws SQLException
    {
        new PathologyDAO().EditStock(ItemCode, IName, ICost, INum, DNum);
    }
    public void deleteStock(int StockID) throws SQLException
    {
        new PathologyDAO().DeleteStock(StockID);
    }
    
}
